<%-- 
    Document   : load_json
    Created on : 16/09/2014, 10:22:21 PM
    Author     : Edwin, Cristian
--%>

<%@page import="java.io.FileReader"%>
<%@page import="java.io.BufferedReader"%>
<%
    String jspPath = session.getServletContext().getRealPath("/");
    String fileName = jspPath +  "\\" + request.getParameter("url").replace("/", "\\");
    BufferedReader reader = new BufferedReader(new FileReader(fileName));
    StringBuilder sb = new StringBuilder();
    String line;

    while ((line = reader.readLine()) != null) {
        sb.append(line + "\n");
    }
    
    out.print(sb.toString());
%>